import request from '@/utils/request'
//试卷管理接口
export function testPaperQuery(data) {
  //分页列表
  return request({
    method: 'get',
    url: '/testPaper/query',
    params: data,
  })
}

export function testPaperQueryById(id) {
  //查询
  return request({
    method: 'get',
    url: '/testPaper/query/' + id,
  })
}

export function testPaperAdd(data) {
  //添加
  return request({
    method: 'post',
    url: '/testPaper/add',
    data,
  })
}

export function testPaperDelete(id) {
  //删除
  return request({
    method: 'get',
    url: '/testPaper/delete/' + id,
  })
}

export function testPaperUpdate(data) {
  //修改
  return request({
    method: 'post',
    url: '/testPaper/update',
    data,
  })
}
